package com.culturalCenter.dataCenter.globalconfig;

import ch.qos.logback.core.PropertyDefinerBase;


/**
 * @author ZMC
 */
public class LogHomeProperty extends PropertyDefinerBase {

    private final static String LOG_HOME = "/ServerData/websites/CulturalCenter-DataCenter-API/logs/";

    @Override
    public String getPropertyValue() {
        // 保存路径
        // 获取单个系统环境变量
        String logPath = System.getenv("WEBSITE_DATA");
        if (logPath == null) {
            logPath = LOG_HOME;
        } else {
            logPath = logPath + "/dataCenter/logs";
        }
        return logPath;
    }

}
